<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class DataController extends Controller
{
    /**
     * 获取菜单结构数据
     * @param Request $request
     * @return string
     */
    function getMuneData(Request $request){
        $ary = array();
        $ary['name'] ='主页统计';
        $ary['route'] ='dashboard';
        $ary['isActive'] =false;
        $ary['icon'] ='fa fa-bar-chart';
        return json_encode($ary);
    }
}
